package com.toe.recommend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.toe.common.restful.JsonPage;
import com.toe.pojo.dto.recommend.RecommendAddClassDTO;
import com.toe.pojo.entity.recommend.RecommendClasses;
import com.toe.pojo.vo.recommend.RecommendClassesVO;
import com.toe.pojo.vo.recommend.RecommendClassesVideoVO;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 陶涛
 * @since 2022-07-19
 */
public interface RecommendClassesService extends IService<RecommendClasses> {

//    void insert(AddClassDTO classDTO, MultipartFile file);

    void insert(RecommendAddClassDTO classDTO, File file);

    void deleteById(Long id);

    RecommendClassesVideoVO getClassVideoById(Long id);

    JsonPage<RecommendClassesVO> getClasses(int pageNum, int pageSize);

    List<RecommendClassesVO> recommendClasses();

    void download(Long id, HttpServletResponse response);

    void preloadCache();

}
